package com.etung.iot.demo.boxConfig;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@ApiModel(value = "变量配置")
public class Variant {
    @ApiModelProperty(notes = "变量ID")
    private Integer varId;
    @ApiModelProperty(notes = "变量名称")
    private String varName;
    @ApiModelProperty(notes = "变量数据类型")
    private String dataType;
    @ApiModelProperty(notes = "变量读写类型")
    private Integer readWriteable;
    @ApiModelProperty(notes = "变量描述")
    private String varDesc;
    @ApiModelProperty(notes = "变量单位")
    private String unit;
    @ApiModelProperty(notes = "变量地址类型")
    private String addressType;
    @ApiModelProperty(notes = "变量地址偏移")
    private String offset;
    @ApiModelProperty(notes = "变量地址类型2")
    private String addressType2;
    @ApiModelProperty(notes = "变量地址偏移2")
    private String offset2;
    private LinearSetting linearSetting;
    private List<Alarm> alarmList;
    private StorageSetting storageSetting;
}
